package com.ruyuan.engine.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 符合规则的数据
 * */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RuleResult {
    private String ruleId;
    private String eventId;
    private String createTime;
    private RuleComplexParam ruleComplexParam;
    private Boolean isBaseRuleParams;
    private Boolean isCombinationRuleParams;
    private Boolean isSequenceRuleParams;
    private Boolean isMatch;
    private String userId;

    //规则分区条件
    private String rulePartitionValue;

    public RuleResult(String ruleId,String eventId,Long createTime) {
        this.ruleId = ruleId;
        this.eventId = eventId;
        this.createTime = String.valueOf(createTime);
    }
}
